]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Define ST_COMPILATION in the St enumeration template
authorEmmanuele Bassi <ebassi@gnome.org>
Thu, 10 Aug 2017 22:27:56 +0000 (23:27 +0100)
committerEmmanuele Bassi <ebassi@gnome.org>
Thu, 10 Aug 2017 22:27:56 +0000 (23:27 +0100)
In parallel builds we may end up with st-enum-types.c being built inside
separate targets outside of src/st which may not have the ST_COMPILATION
pre-processor symbol defined. For this reason, we need to define it
ourselves in the source file, before including other headers, to avoid
the single-include guard.

src/st/st-enum-types.c.in

index 738ac27694f318b4995c503bb2131d6c2916a3dd..bf0c5447002d488050fa7ff6ed6c321388cafae9 100644 (file)
@@ -1,4 +1,7 @@
 /*** BEGIN file-header ***/
+#ifndef ST_COMPILATION
+#define ST_COMPILATION
+#endif
 #include "st-enum-types.h"
 /*** END file-header ***/